﻿package net.wangit.dev.wizard;

import java.util.List;

import net.wangit.dev.wizard.element.ABackButton;
import net.wangit.dev.wizard.element.ASaveActionButton;
import net.wangit.dev.wizard.unit.AFormUnit;


public class OneTableSuiteProcessor7 extends OneTableSuiteProcessor {

	public OneTableSuiteProcessor7() {
	}

	protected void createUnits() throws Exception {
		AFormUnit.create(db, domain, groupId, formUnitId, formUnitName,
				tableName, 1, null);
		List<String> elements = Table2Unit.create(db, formUnitId, tableName,
				1, null);
		ABackButton.create(db, ac, formUnitId, "", elements);
		ASaveActionButton.create(db, ac, formUnitId, tableName, WizardUtil
				.getUrl(domain, formUnitId, "e"), elements, null, null, null);
	}

	protected String[][] getUnits() {
		return (new String[][] { new String[] { formUnitId, "formunitid" } });
	}
}
